#pragma once
#include "common.h"
#include "BTCOMConn.h"
#include "../loglib/CommLog.h"

class CBTListWnd : public CMzWndEx
{
    MZ_DECLARE_DYNAMIC(CBTListWnd);

public:
    CBTCOMConn          *m_pconn;

public:
    UiButton            m_btn;
    UiCaption           m_caption;
    UiList              m_list;
    BT_ADDR             m_liData[255];
    int                 m_listsize;
    UiToolbar_Text      m_Toolbar;
    vector<RawBTDevice> m_rawBTDevicesList;

public:
    virtual int QueryAllBTDevices(vector<RawBTDevice> &rawBTDevicesList);
    virtual int OnGetBTDevice(RawBTDevice rawBTDevice);

public:
    virtual BOOL OnInitDialog();
    virtual void OnMzCommand(WPARAM wParam, LPARAM lParam);
    LRESULT MzDefWndProc(UINT message, WPARAM wParam, LPARAM lParam);

public:
    CBTListWnd(CBTCOMConn &conn);
    ~CBTListWnd(void);
};


